# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-pyvit
_pkgname=pyvit
pkgver=0.2.1
_pyver=3.13
pkgrel=13
pkgdesc='Python Vehicle Inteface Toolkit.'
arch=('any')
url='https://pypi.org/project/pyvit/#files'
license=('GPL3')
depends=('python' 'python-future' 'python-pyserial')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/pyvit-$pkgver.tar.gz")
sha512sums=('1c9e90b27abb4684b5dd605018b73c8937cebada192157a93b88605aa08c64bc331f4326509ac2925895ff4ac72d36672565cbd616be6a2b1ad0bc5656101015')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --prefix=/usr --root="$pkgdir" -O1 --skip-build

  rm -rf "$pkgdir/usr/lib/python$_pyver/site-packages/test"
}

